$(function () {
    var o = sessionStorage.getItem("uid");
    o || (console.error("uid not exist"), location.hash = "login"),
        $.get(hostUrl + "/pay/is-pay-pw-exists/?uid=" + o,
            function (o) {
            !0 === o.meta.success && (o.data || $("#add-pay-pass").css("display", "block"));
            !0 === o.meta.success && (!o.data || $("#modify-pay-pass").css("display", "block"));
           
            }),
        $("#returnLink").on("click",
            function () {
                vipspa.setMessage({
                    id: "person_info",
                    content: {
                        tab: "uInfo"
                    }
                }),
                    location.hash = "trade"
            }),
        $("#modifyPass").on("click",
            function () {
                location.hash = "modify-pw"
            }),
        $("#add-pay-pass").on("click",
            function () {
                location.hash = "add-pay-pw"
            }),
        $("#modify-pay-pass").on("click",
            function () {
                location.hash = "modify-pay-pw"
            }),
        $("#reset-pay-pass").on("click",
            function () {
                location.hash = "reset-pay-pw"
            })
});